import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class STransportFailReward
    
    export  class STransportFailReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new STransportFailReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.finalExp);
            arg1.writeInt(this.cashPledge);
            arg1.writeInt(this.rewardCoin);
            arg1.writeBool(this.killByPlayer);
            this.killerMiniPlayer.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.finalExp = arg1.readInt();
            this.cashPledge = arg1.readInt();
            this.rewardCoin = arg1.readInt();
            this.killByPlayer = arg1.readBool();
            this.killerMiniPlayer = new SPublicMiniPlayer();
            this.killerMiniPlayer.__read(arg1);
            return;
        }

        public /* const */_type: int=12079;

        public /* var */finalExp: int;

        public /* var */cashPledge: int;

        public /* var */rewardCoin: int;

        public /* var */killByPlayer: Boolean;

        public /* var */killerMiniPlayer: SPublicMiniPlayer;

        public static /* var */_regist: STransportFailReward;
    }

            STransportFailReward._regist = new STransportFailReward(true);
        